home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mission 3
/
Mission 3.zip
/
Mission 3.iso
/
tools
/
worldclk
/
phwclk.doc
next >
Wrap
Text File
|
1997-03-12
|
8KB
|
220 lines
PH WORLD CLOCK ver 2.1
by William Wong, Mar 1997
ProbeHouse Software
"Another brilliant piece of utility from PHSW"
- Drovak.
"Calling my worldwide Embassies will be easier with this PHSW clock with
alarm feature"
- Clinton
Introduction
------------
The PH World Clock is a ST program that will display both the local time
and the time of the place of your selection. Over 50 world major cities
are programmed into the world clock. The day and date of the local time
is display along with the day of the international time.
There is also an user definable city for your home town. There is a simple
implementation of Daylight Savings Time.
It have a builtin alarm and hourly chime. The alarm will popup a window
which contain your own message or reminder. There are 8 alarms sounds
available for selection.
Program or Desktop accessory
----------------------------
PH World Clock is both a GEM program and a Desktop Accessory.
To use as a GEM program, rename extension to .PRG
To use as a Desktop Accessory, rename extension to .ACC
Note: As a DA, for single TOS, you may need to run a normal program
before it's entry appear in the DA list. However, Alarm still
works right from bootup.
The Display
-----------
The World Clock is displayed in a window. You can move the window around
the desktop with the mouse. The local time is display on the top line and
the city of choice time is displayed on the bottom line.
The CLOSER button of the window will close the World Clock. If you are
running World Clock as an desk accessory, the alarm set is still active
when the World Clock window is close. This feature allows uncluttered
screen when working on any GEM program with the alarm activated.
The FULLER button of the window will bring up the CONFIGURATION window.
The CONFIGURATION window allows the alarm time, alarm message, alarm on &
off, chime on & off, the alarm sound and user definable city to be set.
The window info line provide the following information
Bell icon = Alarm time.
Note icon = Chime is on.
Clock icon= Daylight Savings Time is on.
Blinker = Visual to show that it's working.
Commands
--------
When World Clock is topped (ie the top most window) the following keyboard
keys are active :
Left/Right cursor - Scroll city time.
Up/Down corsor - Scroll local city time.
A to Z - Change to city beginning with alphabet.
ALT- A to Z - Change to local city beginning with alphabet.
CTRL-Q - Quit World Clock.
CTRL-C - Open CONFIGURATION window.
CTRL-I - PHSW Program name & my address INFORMATION window.
CTRL-U - Close windows (except main window use CTRL-Q)
CTRL-W - Scroll between CONFIGURATION & INFORMATION window.
The CONFIGURATION window
------------------------
The CONFIGURATION window allows the alarm time, alarm message, alarm on &
off, chime on & off, the alarm sound & user definable city to be set.
ALARM : Check the tick box to enable it.
Time: type in the time of the alarm in 24 hours format.
Msg : type in your message. This message will appear in a window when
the alarm goes off. Limit to 29 characters only.
GLOBAL :
Chime : Activate the chime when ticked.
DST : Daylight savings Time mode is on when ticked.
SOUND : Select the sound for alarm and chime.
LOCAL CITY: (this sets the user definable city)
City : Enter the city name.
GMT : Enter the hours ahead / behind GMT.
If behind, add a - otherwise a +.
DST : Tick if DST affects this city.
INFO : display PHSW signon and how to contact me.
CANCEL : Cancel the configuration (means no saving done)
OK : Save the configuration to PHWCLK.CFG.
Preference
----------
The preference of World Clock saved are the local, internation city, the
alarm and chime setting.
This is saved in a file called PHWCLK.CFG in the root folder of the
drive where it is started. PHWCLK.CFG is saved automatically by closing
the CONFIGURATION window or quitting the World Clock program. Notice
that when using as a desk accessory the program nevers quit and so the
configuration is only saved when the OK button is pressed.
Please make sure that your current drive is your bootup drive when saving.
If no preference file is found, the local time defaults to Singapore and
international time, the 1st city in the list. The alarm and chime OFF and
the alarm message as "Alarm". The local city is set to LOCAL and +0000 hrs
GMT.
List of cities in World Clock
-----------------------------
If your city is not listed, let me know the city name, time away from
Greenwich Mean Time (GMT) and sent it to address in next section.
Amsterdam, Ankara, Auckland,
Baghdad, Bahrain, Bangkok, Barbados, Barcelona, Beirut, Berlin, Bermuda,
Bombay, Brisbane, Buenos Aires,
Cairo, Calcutta, Chicago,
Darwin, Detroit, Delhi, Dusseldorf (CEBit fame),
Frankfurt,
Geneva,
Hong Kong, Honolulu,
Johannesburg,
Karachi, Kuala Lumpur, Kuwait,
Lagos, London,
Madrid, Mauritius, Montreal, Moscow,
Nairobi, New York,
Oslo,
Paris, Peking, Perth,
Rangoon, Rio De Janeiro, Rome,
San Francisco, Singapore, Sydney,
Teheran, Tel Aviv, Tokyo, Toronto,
Vancouver, Vienna,
Warsaw, Washington,
Zurich,
Daylight Savings Time (DST)
---------------------------
DST is handled PH World Clock simply. It knows which city in it's list is
affected by DST. If the current season is DST, then tick the DST checkbox
in the GLOBAL setting of the CCONFIGURATION. All affected cities will have
it's time increased by 1 hour. For the user definable city, if the DST for
it is ticked, then DST is also applied to it.
Since I do not know when DST season comes into effect for each country,
PH World Clock cannot automatically determine DST season.
Alarm Message
-------------
The alram message box is changed into a MODAL dialog box. This is so to
force the user to acknowledge the alarm.
There is always another Bug
---------------------------
or
Oh, that's a feature of this program
------------------------------------
If you find any bugs in this program, please let me know.
This program was written in Pure C on a VGA, Tos 4.04, 4 Meg Falcon.
PH World Clock was also tested on Tos 4.04, WinX, and MiNT 1.12 as a DA.
Version changes
---------------
version 2.1 - Mar 1997
- Shortcut keys in configuration window.
- Added user defineable city
Version 2.0 - May 1994
- Date miscalculation on Sunday fixed.
- Alarm with personal message added.
- Chime added.
- 8 sounds for chime and alarm.
Version 1.0
- First public domain release.
Another Public domain software
------------------------------
Yes this is another one of PHSW Public domain software. So here it goes
again ...
If you like this software or use it more than 3 times, I expect you
to show your appreciation by sending me a mail or some useful stuff like
CDs, magazines (any type that a male would enjoy seeing), US dollars,
NEW T-shirts, ST hardware or software, Syquest cartdriges (44 Meg please),
cheque with your proper signature, US dollars, COE, Falcon 030, video
tapes (as with the magazines), Hi-Fi set and dollar notes.
Please sent all your goodies to -
William Wong
CC 5129,
Blk 990, Bendemeer Road,
Singapore 339942,
Republic of Singapore.
Internet : wongck@letterbox.com
web page : http://www.geocities.com/SiliconValley/6880/phsw.html
If you somehow would like to register this software, please pay in US
traveller cheque of US$10, signed correctly for outside Singapore or in
Singapore, S$15. Registered users will get the source code as well as
the latest version (if any) send to them in a good condition diskette.
Please include your postal address.
Ciao, Have fun.